<%@page import="lib_model.WareHouse.Warehouse"%>
<%@page import="lib_model.Order.Orders_bill_type"%>
<%@page import="lib_model.Customer.Customer"%>
<%@page import="lib_model.Account.Account_warehouse"%>
<%@page import="java.util.ArrayList"%>
<%@page import="lib_model.Orther.ReturnObj"%>
<%@page import="lib_model.Order.Orders_bill"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<jsp:include page="../templates/Admin.jsp"></jsp:include>
Orders Bill
<jsp:include page="../templates/Title.jsp"></jsp:include>
<jsp:include page="../templates/StyleAd.jsp"></jsp:include>
<div class="body-center w960">
<h2 class="title-show">Orders Bill</h2>
<%
	Orders_bill bills = new Orders_bill();
	ReturnObj rs = bills.Select();
	ArrayList<Orders_bill> arr = (ArrayList<Orders_bill>) rs.ObjResult;
%>
<table class="tb">
	<thead>
		<tr>
			<th align="left" width="20%">Order ID</th>
			<th align="left" width="20%">Warehouse</th>
			<th align="left" width="20%">WH Account</th>
			<th align="left" width="20%">Customer</th>
			<th align="left" width="20%">Type Order</th>
			<th align="left" width="20%">Details</th>
		</tr>
	</thead>
	<tbody>
		<%
			for (Orders_bill bill : arr) {
		%>
		<%
			Warehouse cs = new Warehouse(bill.id);
		%>
		<tr>
			<td><b><%=bill.id%></b></td>
                        <td></td>
<!--			<td><%=((Warehouse) (cs.GetInformation().ObjResult)).name%></td>-->
			<td><%=bill.account_warehouse_username_ref%></td>
                       	<td><%=bill.customer_id_ref%></td> 
			<td><%=bill.orders_bill_type_name_ref%></td>
			<td><a href='../administrator/orders-detail.jsp?id=<%=bill.id%>'>Details</a></td>
		</tr>
		<%
			}
		%>
	</tbody>
</table>
</div>
<jsp:include page="../templates/Footer.jsp"></jsp:include>